export const commonConfig = {
  defaultPageSize: 15,
  linkType: [
    {
      label: "TCP服务端",
      value: "TCP server",
    },
    {
      label: "TCP客户端",
      value: "TCP client",
    },
    {
      label: "UDP",
      value: "UDP",
    },
    {
      label: "UART",
      value: "UART",
    },
    {
      label: "GPIO",
      value: "GPIO",
    },
    {
      label: "UDP客户端",
      value: "UDP client",
    },
  ],
  genParamType: [
    {
      label: "常规",
      value: "common",
    },
    {
      label: "数组类",
      value: "array",
    },
    {
      label: "联合",
      value: "combine",
    },
  ],
  analyzeFuncType: [
    {
      label: "编码",
      value: "encode",
    },
    {
      label: "解码",
      value: "decode",
    },
    {
      label: "其他",
      value: "others",
    },
  ],
  sideType: [
    {
      label: "服务端",
      value: "server",
    },
    {
      label: "客户端",
      value: "client",
    },
  ],
  collectType: [
    {
      label: "异步采集",
      value: "async",
    },
    {
      label: "同步采集",
      value: "sync",
    },
  ],
  protocolMark: [
    {
      label: "常规",
      value: 1,
    },
    {
      label: "特定",
      value: 2,
    },
  ],
  baudRate: [
    {
      label: "2400",
      value: 2400,
    },
    {
      label: "9600",
      value: 9600,
    },
    {
      label: "14400",
      value: 14400,
    },
    {
      label: "19200",
      value: 19200,
    },
    {
      label: "38400",
      value: 38400,
    },
    {
      label: "57600",
      value: 57600,
    },
    {
      label: "115200",
      value: 115200,
    },
  ],
  parity: [
    {
      label: "none",
      value: 0,
    },
    {
      label: "odd",
      value: 1,
    },
    {
      label: "even",
      value: 2,
    },
    {
      label: "mark",
      value: 3,
    },
    {
      label: "space",
      value: 4,
    },
  ],
  unpackType: [
    {
      label: "无",
      value: "none",
    },
    {
      label: "根据结尾符拆包",
      value: "suffixUnpack",
    },
    {
      label: "根据数据长度拆包",
      value: "lengthUnpack",
    },
    {
      label: "dLive 特殊拆包",
      value: "dLiveUnpack",
    },
  ],
  encodeType: [
    {
      label: "低位高字节",
      value: 0,
    },
    {
      label: "高位高字节",
      value: 1,
    },
  ],
  commandType: [
    {
      label: "通用控制",
      value: 1,
    },
    {
      label: "通用查询",
      value: 2,
    },
    {
      label: "订阅",
      value: 3,
    },
    {
      label: "被动",
      value: 4,
    },
    {
      label: "心跳",
      value: 5,
    },
  ],
  commandOrientation: [
    {
      label: "上行",
      value: 1,
    },
    {
      label: "下发",
      value: 2,
    },
  ],
  analyzeWay: [
    {
      label: "模板解析",
      value: 1,
    },
    {
      label: "编解码函数解析",
      value: 2,
    },
  ],
  commandMapParamType: [
    {
      label: "Req", // 下发
      value: "Req",
    },
    {
      label: "Rsp", // 上报
      value: "Rsp",
    },
    {
      label: "Func", // 参数需要关联一个生成函数
      value: "Func",
    },
  ],
  commandMapWay: [
    {
      label: "无",
      value: 0,
    },
    {
      label: "枚举",
      value: 1,
    },
    {
      label: "线性映射",
      value: 2,
    },
    {
      label: "自定义映射",
      value: 3,
    },
  ],
  reportType: [
    {
      label: "Attribute",
      value: 1,
    },
    {
      label: "Telemetry",
      value: 2,
    },
  ],
  dataType: [
    {
      label: "字符串",
      value: "string",
    },
    {
      label: "整型",
      value: "long",
    },
    {
      label: "小数",
      value: "decimal",
    },
    {
      label: "布尔",
      value: "boolean",
    },
    {
      label: "十六进制",
      value: "hex",
    },
  ],
  ctrlType: [
    {
      label: "枚举",
      value: "enum",
    },
    {
      label: "输入框",
      value: "input",
    },
    {
      label: "滑杆",
      value: "slider",
    },
  ],
  paramUnit: [
    {
      label: "dB",
      value: "dB",
    },
    {
      label: "M",
      value: "M",
    },
    {
      label: "kg",
      value: "kg",
    },
  ],
  byteOrder: [
    {
      label: "正序",
      value: 1,
    },
    {
      label: "逆序",
      value: 2,
    },
  ],
  modbusFuncCode: [
    {
      label: "MODBUS_READ_COILS",
      value: "01",
    },
    {
      label: "MODBUS_READ_DISCRETE_INPUTS",
      value: "02",
    },
    {
      label: "MODBUS_READ_HOLDING_REGISTERS",
      value: "03",
    },
    {
      label: "MODBUS_READ_INPUT_REGISTERS",
      value: "04",
    },
    {
      label: "MODBUS_WRITE_SINGLE_COIL",
      value: "05",
    },
    {
      label: "MODBUS_WRITE_SINGLE_REGISTER",
      value: "06",
    },
    {
      label: "MODBUS_READ_EXCEPTION_STATUS",
      value: "07",
    },
    {
      label: "MODBUS_DIAGNOSTICS",
      value: "08",
    },
    {
      label: "MODBUS_GET_COMM_EVENT_COUNTER",
      value: "0B",
    },
    {
      label: "MODBUS_GET_COMM_EVENT_LOG",
      value: "0C",
    },
    {
      label: "MODBUS_WRITE_MULTIPLE_COILS",
      value: "0F",
    },
    {
      label: "MODBUS_WRITE_MULTIPLE_REGISTERS",
      value: "10",
    },
    {
      label: "MODBUS_REPORT_SERVER_ID",
      value: "11",
    },
    {
      label: "MODBUS_READ_FILE_RECORD",
      value: "14",
    },
    {
      label: "MODBUS_WRITE_FILE_RECORD",
      value: "15",
    },
    {
      label: "MODBUS_MASK_WRITE_REGISTER",
      value: "16",
    },
    {
      label: "MODBUS_READ_WRITE_MULTIPLE_REGISTERS",
      value: "17",
    },
    {
      label: "MODBUS_READ_FIFO_QUEUE",
      value: "18",
    },
  ],
  knxFuncCode: [
    {
      "label": "GROUP_VALUE_READ",
      "value": "00"
    },
    {
      "label": "GROUP_VALUE_RESPONSE",
      "value": "01"
    },
    {
      "label": "GROUP_VALUE_WRITE",
      "value": "02"
    },
    {
      "label": "INDIVIDUAL_ADDR_WRITE",
      "value": "03"
    },
    {
      "label": "INDIVIDUAL_ADDR_REQUEST",
      "value": "04"
    },
    {
      "label": "INDIVIDUAL_ADDR_RESPONSE",
      "value": "05"
    },
    {
      "label": "ADC_READ",
      "value": "06"
    },
    {
      "label": "ADC_RESPONSE",
      "value": "07"
    },
    {
      "label": "MEMORY_READ",
      "value": "08"
    },
    {
      "label": "MEMORY_RESPONSE",
      "value": "09"
    },
    {
      "label": "MEMORY_WRITE",
      "value": "0A"
    },
    {
      "label": "USER_MESSAGE",
      "value": "0B"
    },
    {
      "label": "MASK_VERSION_READ",
      "value": "0C"
    },
    {
      "label": "MASK_VERSION_RESPONSE",
      "value": "0D"
    },
    {
      "label": "RESTART",
      "value": "0E"
    },
    {
      "label": "ESCAPE",
      "value": "0F"
    }
  ],
  modebusStartAddrType: [
    {
      label: "开始位固定",
      value: false,
    },
    {
      label: "动态生成",
      value: true,
    },
  ],
  httpMethod: [
    {
      label: "GET",
      value: "GET",
    },
    {
      label: "POST",
      value: "POST",
    },
    {
      label: "PUT",
      value: "PUT",
    },
    {
      label: "DELETE",
      value: "DELETE",
    },
  ],
  mqttMethod: [
    {
      label: "订阅(Subscribe)",
      value: "Subscribe",
    },
    {
      label: "发布(Publish)",
      value: "Publish",
    },
  ],
  mqttQos: [
    {
      label: "最多一次传输",
      value: 0,
    },
    {
      label: "至少一次传输",
      value: 1,
    },
    {
      label: "只有一次传输",
      value: 2,
    },
  ],
  httpContentType: [
    {
      label: "application/json",
      value: "application/json",
    },
    {
      label: "text/html",
      value: "text/html",
    },
    {
      label: "text/plain",
      value: "text/plain",
    },
    {
      label: "application/xml",
      value: "application/xml",
    },
    {
      label: "application/x-www-form-urlencoded",
      value: "application/x-www-form-urlencoded",
    },
  ],
  mqttContentType: [
    {
      label: "application/json",
      value: "application/json",
    },
    {
      label: "text/plain",
      value: "text/plain",
    },
    {
      label: "application/xml",
      value: "application/xml",
    },
  ],
  relCommType: [
    {
      label: "立即执行",
      value: 1,
    },
    {
      label: "仅做关联",
      value: 2,
    },
    {
      label: "响应后执行",
      value: 3,
    },
  ],
  platformType: [
    {
      label: "ROMALink",
      value: "ROMALink",
    },
  ],
  specialTags: {
    seq: "#SEQ",
    length: "#L",
    adr: "ADR",
    headAscii: "H",
    headHex: "HE",
    separateAscii: "S",
    separateHex: "SE",
    separateBinary: "SBE",
    terminalAscii: "T",
    terminalHex: "TE",
    proxyAddress: "@PADR",
    nLoop: "NP",
    timeStamp: "!TS",
    time: "!TIME",
    date: "!DATE",
    crc16: "#CRC16",
    crc8: "#CRC8",
    crc16xmodem: "#CRC16XMODEM",
    crc16ccitt: "#CRC16CCITT",
    crc_xor: "#CRC-XOR",
    crc_or: "#CRC-OR",
    crc16IBM: "#CRC16IBM",
  },
  codeTagType: {
    head: "head", // 头部标签
    separate: "separate", // 分隔符标签
    redundancy: "redundancy", // 冗余标签
    terminal: "terminal", // 终止符标签
    variable: "variable", // 变量标签
    instanceVariable: "instanceVariable", //设备配置变量
    nLoop: "NLoop", // 循环标签
    seqNum: "SEQ", // 序号标签
    length: "length", // 长度标签
    proxy: "proxy", // 代理地址
    system: "system", // 系统内置变量
    systemFunc: "systemFunction", // 内部方法需要给参数设置一个生成方法
    crcCheck: "crcCheck", // CRC 校验
    address: "address", // TODO 地址标签 分控中 $ADR 标签属于变量，设备库中不用当做变量，只需做一个标志 Henry 2020-02-21 20:46:44
  },
  codingStyle: {
    hex: "hexadecimal", // 十六进制
    ascii: "ascii", // ascii码
    binary: "binary", //二进制
  },
};

// 通用状态颜色配置
export const statusColorConfig = {
  success: {
    bg: "color-success",
    font: "font-color-success",
  },
  warning: {
    bg: "color-warning",
    font: "font-color-warning",
  },
  danger: {
    bg: "color-danger",
    font: "font-color-danger",
  },
  info: {
    bg: "color-info",
    font: "font-color-info",
  },
  unknown: {
    bg: "color-gray-70",
    font: "font-gray-70",
  },
};

// moment 时间格式
export const momentFormat = {
  date: "YYYY-MM-DD",
  dateCN: "YYYY年MM月DD日",
  dateSlant: "YYYY/MM/DD",
  datetime: "YYYY-MM-DD HH:mm",
  dateTimeDetail: "YYYY-MM-DD HH:mm:ss",
  year: "YYYY",
  yearCN: "YYYY年",
  yearMonth: "YYYY-MM",
  yearMonthCN: "YYYY年MM月",
  yearWeek: "YYYY-WW",
  yearWeekCN: "YYYY年-WW周",
  month: "M",
  monthCN: "M月",
  monthDay: "MM-DD",
  monthDayCN: "MM月-DD日",
  monthDayWeek: "MM-DD ddd",
  monthDayWeekCN: "MMM DD日 dddd",
  day: "DD",
  dayCN: "DD日",
  time: "HH:mm",
  timeCN: "HH时:mm分",
  timeDetail: "HH:mm:ss",
  timeDetailCN: "HH时:mm分:ss秒",
  datetimeLog: "YYYY-MM-DD HH:mm:ss SSS",
  defaultTimeZone: "Asia/Shanghai",
  timestamp: "X",
  timestampDetail: "x",
  dateTimeDetailCN: "YYYY年MM月DD日 HH:mm:ss",
  dateTimeDetailFlat: "YYYYMMDDHHmmss",
  datestamp: "YYMMDD"
};

export const userRoleCfg = {
  user: "user",
  guest: "guest",
  admin: "admin",
};

export const userRoleMap = {
  user: "运维人员",
  guest: "用户",
  admin: "管理员"
};
export const userRole = [
  {
    label: "运维人员",
    value: "user",
  },
  {
    label: "用户",
    value: "guest",
  },
  {
    label: "管理员",
    value: "admin",
  }
]
// 实体类型配置
export const entityTypeCfg = {
  deviceType: "deviceType",
  manufacturer: "manufacturer",
  series: "series",
  model: "model",
  linkType: "linkType",
  protocolType: "protocolType",
  analyzeFunc: "analyzeFunc",
  generalFunc: "generalFunc",
  generalParam: "generalParam",
  generalCommand: "generalCommand",
  protocol: "protocol",
  command: "command",
  device: "device",
  operationLog: "operationLog",
};

export const entityTypeMap = {
  deviceType: "设备类型",
  manufacturer: "设备厂家",
  series: "设备系列",
  model: "设备型号",
  linkType: "链路类型",
  protocolType: "协议类型",
  analyzeFunc: "自定义函数",
  generalFunc: "通用方法名",
  generalParam: "通用参数名",
  generalCommand: "通用命令",
  protocol: "设备协议",
  command: "设备命令",
  device: "设备集合",
  operationLog: "操作日志",
};

// 操作日志类型配置
export const optLogTypeCfg = {
  insert: "新增",
  update: "更改",
  remove: "删除",
  relationUpdate: "关联更改",
  other: "其他",
};

export const optLogTypeMap = {
  insert: "新增",
  update: "更改",
  remove: "删除",
  relation: "关联更改",
  other: "其他",
};

export const dataTypeArray = [
  {
    label: "字符串",
    value: "string",
  },
  {
    label: "数字",
    value: "int",
  },
  {
    label: "浮点",
    value: "double",
  },
  {
    label: "布尔",
    value: "bool",
  },
  {
    label: "数组",
    value: "list",
  },
  {
    label: "对象",
    value: "map",
  },
];
export const padTypeArray = [
  {
    label: "控制屏",
    value: "control",
  },
  {
    label: "预约屏",
    value: "reserve",
  },
  {
    label: "指引屏",
    value: "guidance",
  },
];

export const globalVariableOptions = [
  {
    name: "开启系统",
    type: "bool",
    key: "room.systemOn",
    value: '',
  },
  {
    name: "场景编号",
    type: "int",
    key: "room.curGroupCmd",
    value: 0,
  },
  {
    name: "房间占用",
    type: "bool",
    key: "room.occupied",
    value: '',
  },
  {
    name: "自动共享",
    type: "string",
    key: "room.autoSharing",
    value: 'on',
  },
  {
    name: "会议信息",
    type: "map",
    key: "room.meetingInfo",
    value: JSON.stringify({
      "meetingList": [],
      "currentMeeting": {
        "subject": "",
        "status": "",
        "startTimeStr": "",
        "endTimeStr": "",
        "reservedBy": {
          "name": "",
          "tel": ''
        },
        "teleconference": {
          "number": "",
          "password": "",
          "manufacturer": ""
        }
      },
      "previousMeeting": {
        "subject": "",
        "status": "",
        "startTimeStr": "",
        "endTimeStr": "",
        "reservedBy": {
          "name": "",
          "tel": ''
        },
        "teleconference": {
          "number": "",
          "password": "",
          "manufacturer": ""
        }
      },
      "nextMeeting": {
        "subject": "",
        "status": "",
        "startTimeStr": "",
        "endTimeStr": "",
        "reservedBy": {
          "name": "",
          "tel": ''
        },
        "teleconference": {
          "number": "",
          "password": "",
          "manufacturer": ""
        }
      },
      "activeMeeting": {
        "subject": "",
        "status": "",
        "startTimeStr": "",
        "endTimeStr": "",
        "reservedBy": {
          "name": "",
          "tel": ''
        },
        "teleconference": {
          "number": "",
          "password": "",
          "manufacturer": ""
        }
      }
    })
  },
  {
    name: "sip信息",
    type: "map",
    key: "room.sipInfo ",
    value: '{}',
  },

]
export const globalReserveOptions = [
  {
    name: "房间名称",
    type: "string",
    key: "ezLink.roomName",
    value: "null"
  },
  {
    name: "会议列表",
    type: "list",
    key: "ezLink.roomMeetingList",
    value: "[]"
  },
  {
    name: "座位数",
    type: "string",
    key: "ezLink.roomSeats",
    value: "null"
  },
  {
    name: "会议室功能",
    type: "string",
    key: "ezLink.meetingFunction",
    value: "null"
  },
  {
    name: "会议室状态",
    type: "string",
    key: "ezLink.roomStatus",
    value: "null"
  },
  {
    name: "二维码地址",
    type: "string",
    key: "ezLink.qrCodeUrl",
    value: "null"
  },
  {
    name: "当前会议标题",
    type: "string",
    key: "ezLink.currentMeetingTitle",
    value: "null"
  },
  {
    name: "当前会议联系人电话",
    type: "string",
    key: "ezLink.meetingtContactsTel",
    value: "null"
  },
  {
    name: "当前会议联系人",
    type: "string",
    key: "ezLink.meetingtContacts",
    value: "null"
  }
]
export const globalGuideOptions = [
  {
    name: "广告数据",
    type: "map",
    key: "ezGuide.adData",
    value: "{}"
  },
  {
    name: "会议列表",
    type: "list",
    key: "ezGuide.meetingList",
    value: "[]"
  },
  {
    name: "房间列表",
    type: "list",
    key: "ezGuide.roomList",
    value: "[]"
  },
]
export const componentArray = [
  {
    label: "原子组件",
    value: "atomic",
  },
  {
    label: "功能组件",
    value: "componentFunction",
  },
  {
    label: "复合组件",
    value: "componentComposite",
  },
  {
    label: "设备组件",
    value: "componentDevice",
  },
  {
    label: "小组件",
    value: "compositeWidget",
  },
  {
    label: "子页面",
    value: "subPage",
  },
  {
    label: "页面",
    value: "page",
  },
];
export const roomTypeArray = [
  {
    label: "小会议室",
    value: "小会议室",
  },
  {
    label: "中会议室",
    value: "中会议室",
  },
  {
    label: "大会议室",
    value: "大会议室",
  },
  {
    label: "培训室",
    value: "培训室",
  },
  {
    label: "洽谈室",
    value: "洽谈室",
  },
  {
    label: "宴会厅",
    value: "宴会厅",
  },
  {
    label: "报告厅",
    value: "报告厅",
  },
  {
    label: "多功能厅",
    value: "多功能厅",
  },
];

export const componentTypeArray = [
  {
    label: "复合组件",
    value: "componentComposite",
  },
  {
    label: "设备组件",
    value: "componentDevice",
  },
  // {
  //   label: "小组件",
  //   value: "compositeWidget",
  // },
  // {
  //   label: "布局组件",
  //   value: "componentLayout",
  // },
  // {
  //   label: "自定义组件",
  //   value: "componentCustom",
  // },
];
export const widgetTypeArray = [
  {label: '房间', value: 'room'},
  {label: '设备', value: 'device'},
  {label: '其他', value: 'other'},
];
export const proTypeArray = [
  {label: '通用协议', value: false},
  {label: '设备协议', value: true},
];
export const componentGroupArray = [
  {
    label: "正式组",
    value: "formal",
  },
  {
    label: "测试组",
    value: "test",
  },
];
export const componentCategoryArray = [
  {
    label: "默认组件",
    value: "container",
  },
  {
    label: "小组件",
    value: "deviceWidget",
  },
  {
    label: "一键入会",
    value: "meetingList",
  },
];

export const componentReviewArray = [
  {
    label: "审核中",
    value: 0,
  },
  {
    label: "通过",
    value: 1,
  },
  {
    label: "驳回",
    value: 2,
  },
];

export const themeConfig = [
  {key: "theme1", label: "浅色", img: require('@/assets/img/theme1.png'), checked: true},
  {key: "theme2", label: "深色", img: require('@/assets/img/theme2.png'), checked: false},
  {key: "theme3", label: "蓝色", img: require('@/assets/img/theme3.png'), checked: false},
];

export const themeOption = [
  {
    theme1: [
      {key: "bg-color-container", value: "#FFFFFF", label: "主要容器背景"},
      {key: "bg-component", value: "#EBECF2", label: "组件背景"},
      {key: "bg-color-page", value: "#F0F1F5", label: "默认页面背景"},
      {key: "bg-color-secondarypage", value: "#F7F8FA", label: "容器背景"},
      {key: "component-stroke", value: "#DADCE5", label: "边框/分割线"},
      {key: "text-color-primary", value: "#000000", label: "主要文字"},
      {key: "text-color-secondary", value: "#454859", label: "次要文字"},
      {key: "text-color-placeholder", value: "#8A8EA6", label: "提示文字"},
      {key: "text-color-disabled", value: "#B4B8CC", label: "不可用文字"},
      {key: "text-color-anti", value: "#FFFFFF", label: "反色文字"},
      {key: "brand-color", value: "#2D69E0", label: "品牌色"},
      {key: "error-color", value: "#F25644", label: "错误色"},
      {key: "success-color", value: "#26BF7F", label: "成功色"},
      {key: "warning-color", value: "#FAAD14", label: "警告色"}
    ],
  },
  {
    theme2: [
      {key: "bg-color-container", value: "#363636", label: "主要容器背景"},
      {key: "bg-component", value: "#565656", label: "组件背景"},
      {key: "bg-color-page", value: "#18181B", label: "默认页面背景"},
      {key: "bg-color-secondarypage", value: "#212124", label: "容器背景"},
      {key: "component-stroke", value: "#4E4E4E", label: "边框/分割线"},
      {key: "text-color-primary", value: "rgba(255, 255, 255, 0.9)", label: "主要文字"},
      {key: "text-color-secondary", value: "rgba(255, 255, 255, 0.65)", label: "次要文字"},
      {key: "text-color-placeholder", value: "rgba(255, 255, 255, 0.45)", label: "提示文字"},
      {key: "text-color-disabled", value: "rgba(255, 255, 255, 0.22)", label: "不可用文字"},
      {key: "text-color-anti", value: "#FFFFFF", label: "反色文字"},
      {key: "brand-color", value: "#447EF2", label: "品牌色"},
      {key: "error-color", value: "#FA6A5A", label: "错误色"},
      {key: "success-color", value: "#51E0A5", label: "成功色"},
      {key: "warning-color", value: "#FFBB33", label: "警告色"}
    ],
  },
  {
    theme3: [
      {key: "bg-color-container", value: "#1A57A6", label: "主要容器背景"},
      {key: "bg-component", value: "#3168AF", label: "组件背景"},
      {key: "bg-color-page", value: "#003578", label: "默认页面背景"},
      {key: "bg-color-secondarypage", value: "#0E4B9A", label: "容器背景"},
      {key: "component-stroke", value: "#255693", label: "边框/分割线"},
      {key: "text-color-primary", value: "rgba(255, 255, 255, 0.9)", label: "主要文字"},
      {key: "text-color-secondary", value: "rgba(255, 255, 255, 0.65)", label: "次要文字"},
      {key: "text-color-placeholder", value: "rgba(255, 255, 255, 0.45)", label: "提示文字"},
      {key: "text-color-disabled", value: "rgba(255, 255, 255, 0.22)", label: "不可用文字"},
      {key: "text-color-anti", value: "#FFFFFF", label: "反色文字"},
      {key: "brand-color", value: "#447EF2", label: "品牌色"},
      {key: "error-color", value: "#FA6A5A", label: "错误色"},
      {key: "success-color", value: "#51E0A5", label: "成功色"},
      {key: "warning-color", value: "#FFBB33", label: "警告色"}
    ],
  },
];
export const packageStatus = [
  {
    label: "测试",
    value: 0,
  },
  {
    label: "已发布",
    value: 1,
  },
  {
    label: "已废弃",
    value:2,
  },
];
export const packageDevice = [
  {
    label: "分控",
    value: "ezControl",
  },
  {
    label: "控制屏",
    value: "controlPad",
  },
];
export const ezControlPlatform = [
  {
    label: "DP100",
    value: "DP100",
  },
  {
    label: "DP120",
    value: "DP120",
  },
  {
    label: "DP120E",
    value: "DP120E",
  },
];
export const ezPadPlatform = [
  {
    label: "Windows",
    value: "Windows",
  },
  {
    label: "Mac",
    value: "Mac",
  },
  {
    label: "Android",
    value: "Android",
  },
];
// 文件资源类型
export const uploadFileType = {
  asset: 'asset', // 图片资源（IDE 房间中使用）
  preview: 'preview', // 预览图
  document: 'document' // 文档类型（协议文档等）
};

// 资源图片类型
export const uploadAssetType = {
  common: 'common',
  project: 'project',
  room: 'room'
};

// 预览图片类型
export const uploadPreviewType = {
  room: 'room',
  component: 'component',
};

/*********************************************************/
// TODO 以下弃用
export const operationLogType = {
  // 操作日志类型
  deviceType: "设备类型",
  deviceManufacturer: "设备厂家",
  deviceSeries: "设备系列",
  deviceModel: "设备型号",
  linkType: "链路类型",
  protocolType: "协议类别",
  analyzeFunc: "自定义函数",
  generalFunc: "通用方法",
  generalParam: "通用参数",
  device: "设备集合",
  generalCommand: "通用命令",
  deviceProtocol: "设备协议",
  deviceCommand: "设备协议-设备命令",
  user: "用户管理",
};
export const logTypeArray = [
  {
    label: "设备类型",
    value: "deviceType",
  },
  {
    label: "设备厂家",
    value: "deviceManufacturer",
  },
  {
    label: "设备系列",
    value: "deviceSeries",
  },
  {
    label: "设备型号",
    value: "deviceModel",
  },
  {
    label: "链路类型",
    value: "linkType",
  },
  {
    label: "协议类别",
    value: "protocolType",
  },
  {
    label: "自定义函数",
    value: "analyzeFunc",
  },
  {
    label: "通用方法",
    value: "generalFunc",
  },
  {
    label: "通用参数",
    value: "generalParam",
  },
  {
    label: "设备集合",
    value: "device",
  },
  {
    label: "通用命令",
    value: "generalCommand",
  },
  {
    label: "设备协议",
    value: "deviceProtocol",
  },
  {
    label: "设备协议-设备命令",
    value: "deviceCommand",
  },
];
export const operationTypeArray = [
  {
    label: "新增",
    value: "新增",
  },
  {
    label: "更改",
    value: "更改",
  },
  {
    label: "删除",
    value: "删除",
  },
  {
    label: "关联更改",
    value: "关联更改",
  },
  {
    label: "其他",
    value: "其他",
  },
];
// 运算符
export const operators = {
  rel: {
    equal: {label: "等于 =", value: "="},
    neq: {label: "不等于 !=", value: "!="},
    gt: {label: "大于 >", value: ">"},
    gte: {label: "大于等于 >=", value: ">="},
    lt: {label: "小于 <", value: "<"},
    lte: {label: "小于等于 <=", value: "<="},
  },
  roomRel: {
    equal: {label: "等于 =", value: "="},
    neq: {label: "不等于 !=", value: "!="},
  },
  logic: {
    and: {label: "与，都满足", value: "and"},  // &&
    or: {label: "或，任意一条满足", value: "or"},  // ||
    // ne: {label: "非，都不满足", value: "$ne"},  // !
  }
};
export const imageCategory = [
  {
    label: "图标类",
    value: 'icons',
  },
  {
    label: "logo类",
    value: 'logo',
  },
  {
    label: "背景图",
    value: 'bg',
  },
  {
    label: "动图",
    value: 'gifs',
  },
  {
    label: "其他",
    value: 'other',
  }
];
export const attributeOriginType = [
  {
    label: "客户端",
    value: 'CLIENT',
  },
  {
    label: "服务端",
    value: 'SERVICE',
  },

];
export const entityType_asset = [
  {
    label: "区域",
    value: 'AREA',
  },
  {
    label: "房间",
    value: 'ROOM',
  },
  {
    label: "中控",
    value: 'CONTROL',
  },
  {
    label: "融合会议主机",
    value: 'MTHOST',
  },
  {
    label: "预约屏",
    value: 'RESERVE',
  },
  {
    label: "指引屏",
    value: 'GUIDANCE',
  },
  {
    label: "墨水屏",
    value: 'INKSCREEN',
  },
];

